import request from '../../../../../public/js/common/api/api.js';

const SaleUrl = Utils.CurDomain.SaleUrl;
const WeiXinUrl = Utils.CurDomain.WeiXinUrl;

const configuration = {
    contentType: 'application/json',
    dataType: 'json',
    async: true,
    dataFilter(data, type) {
        return data;
    }
}
export default class vehicleApi {
    // 查询车辆采样检测列表
    static getVehicleList(data) {
        return request.post(`${SaleUrl}/vehiclesampdetctions/list`, data);
    }
    // 处理检测结果
    static submitVehicle(data) {
        return request.post(`${SaleUrl}/vehiclesampdetctions/dispose`, data);
    }
    // 查询用户信息
    //static queryUserName(sid) {
    //    return request.get(`${WeiXinUrl}/wxauths/cur?sid=${sid}`);
    //}

    // 修改车辆采样检测结果
    static updateVehicle(data) {
        return request.put(`${SaleUrl}/vehiclesampdetctions/${data.id}`, data);
    }
}